//
//  HRProductInfo.m
//  haierapp
//
//  Created by Xia Zhiyong on 14-8-21.
//  Copyright (c) 2014年 haier. All rights reserved.
//

#import "HRProductInfo.h"

@implementation HRProductInfo

//从远程接口获取的产品数据，初始化数据
-(id)initWithGoodsInfo:(HRGoodsInfo *)goodsInfo{
    self=[super init];
    
    if (self) {
        //config
        self.productId=[goodsInfo.productId stringValue];
        self.name=goodsInfo.productTitle;
        self.goodsAmount=@(1);
        self.price=goodsInfo.unitPrice;
        
        self.picMinPath=goodsInfo.productLinker;//购物车缩略图
        
        self.proSpeInfo = goodsInfo.productClassify;//参数
        
    }
    
    return self;
}

@end
